<?php
namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

class Advert extends Model
{
	use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = true;
    
    protected function adcat()
    {
    	return self::belongsTo(AdCat::class, 'ad_cat_id')->bind(['cat_name'=>'name']);
    }


}